import mpfreePublishApi from "@/api/declaration/mp/mpfreePublishApi"
import httpRequest from "@/config/axios/httpRequest"


// 获得公众号素材分页
export const getFreePublishPage = (query) => {
  return httpRequest.get(mpfreePublishApi.GetFreePublishPage, { params: query })
}

// 删除公众号素材
export const deleteFreePublish = (accountId, articleId) => {
  return httpRequest.delete(mpfreePublishApi.DeleteFreePublish, { params: { accountId, articleId } })
}

// 发布公众号素材
export const submitFreePublish = (accountId, mediaId) => {
  return httpRequest.post(mpfreePublishApi.SubmitFreePublish, { accountId, mediaId })
}
